<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<input type="checkbox"  id="c1">


<h1 id="h1"></h1>

<button id="b1" >aaaaaa</button>
</body>
</html>

<!-- jQuery -->
<script src="js/jquery-3.7.0.js"></script>

<script>




    $("#b1").click(function () {


        $("#h1").text($("#c1").prop("checked"));

    });






</script>